ea6242394da091148dbe1b2e8aa7dc042ef10947,app/src/main/java/de/fhdw/ergoholics/brainphaser/activities/statistics/StatisticsAdapter.java,StatisticsAdapter,onBindViewHolder,#StatisticViewHolder#number#,73

Before Change


                holder.applyDueChart();
            }
            else if (position==1) {
                holder.applyMostPlayedChart(StatisticsMode.MOST_PLAYED_MODE_ALL);
            }
            else if (position==2) {
                holder.applyStageChart();
            }
            else if (position==3) {
                holder.applyMostPlayedChart(StatisticsMode.MOST_PLAYED_MODE_FAILED);
            }
            else if (position==4) {
                holder.applyMostPlayedChart(StatisticsMode.MOST_PLAYED_MODE_SUCCEEDED);
            }
        }
        else {
            if (position==0) {
                holder.applyDueChart();
            }
            else if (position==1) {
                holder.applyStageChart();
            }
            else if (position==2) {
                holder.applyMostPlayedChart(StatisticsMode.MOST_PLAYED_MODE_ALL);
            }
            else if (position==3) {
                holder.applyMostPlayedChart(StatisticsMode.MOST_PLAYED_MODE_FAILED);
            }
            else if (position==4) {
                holder.applyMostPlayedChart(StatisticsMode.MOST_PLAYED_MODE_SUCCEEDED);
            }
        }
    }

After Change


            else if (position==3)
                holder.applyMostPlayedChart(StatisticType.TYPE_MOST_FAILED);
            else if (position==4)
                holder.applyMostPlayedChart(StatisticType.TYPE_MOST_SUCCEEDED);
        }
        else {
            if (position==0)
                holder.applyDueChart();
            else if (position==1)
                holder.applyStageChart();
            else if (position==2)
                holder.applyMostPlayedChart(StatisticType.TYPE_MOST_PLAYED);
            else if (position==3)
                holder.applyMostPlayedChart(StatisticType.TYPE_MOST_FAILED);
            else if (position==4)
                holder.applyMostPlayedChart(StatisticType.TYPE_MOST_SUCCEEDED);
        }
    }